import {
  defineStore
} from 'pinia'

export const useFriendStore = defineStore({
  id: 'friend',
  state: () => {
    return {
      remindObjList: {},
      positioning: {},
      labelUsers: [],
      releaseValue: '',
      cardName: {},
      releaseImgs: [],
      current: 0,
      filtrate: {}
    }
  },
  actions: {
    changeRemindObjList(arr) {
      this.remindObjList = arr
    },
    changePositioning(val) {
      this.positioning = val
    },
    changeLabelUsers(arr) {
      this.labelUsers = arr
    },
    changeReleaseValue(value) {
      this.releaseValue = value
    },
    changeReleaseImgs(arr) {
      this.releaseImgs = arr
    },
    changeCardName(val) {
      this.cardName = val
    },
    changeCurrent(val) {
      this.current = val
    },
    changeFiltrate(val) {
      this.filtrate = val
    }
  }
})